//
//  GlassMaterial.hpp
//  RayTracer
//
//  Created by 俞云康 on 3/25/16.
//  Copyright © 2016 yushroom. All rights reserved.
//

#ifndef GlassMaterial_hpp
#define GlassMaterial_hpp

#include "Material.hpp"

class GlassMaterial : public Material {
private:
    Color Kr, Kt;
    float index;
public:
    GlassMaterial(const Color& r, const Color& t, float index) : Kr(r), Kt(t), index(index) { }
    
    static shared_ptr<Material> create(const Params& params);
    
    //virtual std::shared_ptr<BxDF> get_brdf(const HitInfo& hit) const override;
    
    virtual shared_ptr<BSDF> getBSDF(const HitInfo& hit) const override;
};


#endif /* GlassMaterial_hpp */
